home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000038_blitz-list-request_Thu Jul 14 02:54:15 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  2KB

  1. Received: from sol.ccs.deakin.edu.au (sol.ccs.deakin.edu.au [128.184.1.1]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id CAA10021 for <blitz-list@helsinki.fi>; Thu, 14 Jul 1994 02:53:55 +0300
  2. Received: from hareth (hareth.cm.deakin.edu.au [128.184.80.165]) by sol.ccs.deakin.edu.au (8.6.8.1/8.6.6) with SMTP id JAA21897; Thu, 14 Jul 1994 09:52:44 +1000
  3. From: Mark Kuzmycz <kuzmycz@deakin.edu.au>
  4. Received: by hareth (5.0/client-1.3)
  5.     id AA00470; Thu, 14 Jul 1994 09:52:42 --1000
  6. Date: Thu, 14 Jul 1994 09:52:42 --1000
  7. Message-Id: <9407132352.AA00470@hareth>
  8. To: blitz-list@helsinki.fi
  9. Subject: Creating strings
  10. Cc: acid@iconz.co.nz
  11. X-Sun-Charset: US-ASCII
  12. content-length: 1063
  13. MIME-Version: 1.0
  14. Content-Type: text/plain; charset="us-ascii"
  15. Content-Transfer-Encoding: 7bit
  16. X-Status: 
  17. Status: RO
  18.  
  19. Hello fellow Blizers,
  20.  
  21. I am currently creating a text editor for an Amiga guide generator. So far
  22. I have the basic text editor built. The problem is that when I load a one
  23. thousand line text file it takes 3 to 5 minutes on an Amiga 500. I currently
  24. use an edit(1024) to read a line in at a time. As you can see this time is 
  25. unacceptable so I experimented to see how quickly I could count the number 
  26. of lines (load the file in the buffer and search for asc 10) and found I 
  27. could do this in less than one second. 
  28.  
  29. Since I can determine where each line end I would like to know how to create
  30. a string that is compatable with blitz strings. For example I know
  31. that the first workd of a Blitz string is the size and that the last Character
  32. is a null character. What I don't know is how do I place a string in a string
  33. variable? Do I need to allocate memory or are all strings allocated to the
  34. max string size (I don't think so). Also, is there a way to access the internal
  35. sting buffer as this could speed up the creation of a string.
  36.  
  37. Thanks For your help
  38.  
  39. Mark.
  40.